using System;
using System.Collections.Generic;
using System.Text;
using FluentNHibernate.Mapping;
using Water.Model;

namespace Water.Data.Repositories.Mappings
{


    public class MeterPlanMap : ClassMap<MeterPlan>
    {

        public MeterPlanMap()
        {
            Table("Tbt_MeterPlan");
            LazyLoad();
            Id(x => x.MeterMM).GeneratedBy.Assigned().Column("MeterMM");
            Map(x => x.MeterDay).Column("MeterDay").Not.Nullable();
            Map(x => x.MeterEmp).Column("MeterEmp").Not.Nullable();
            Map(x => x.AccountNo).Column("AccountNo");
            Map(x => x.WaterNo).Column("WaterNo");
            Map(x => x.IsComplete).Column("IsComplete").Not.Nullable();
            Map(x => x.Memo).Column("Memo");
            Map(x => x.CreateEmp).Column("CreateEmp").Not.Nullable();
            Map(x => x.CreateDt).Column("CreateDt").ReadOnly();
        }
    }
}
